import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    //房型
    {
      path: '/roomTypeAdd',
      name: 'roomTypeAdd',
      component: () => import('../views/RoomType/RoomTypeAdd.vue')
    },
    {
      path: '/roomTypeShow',
      name: 'roomTypeShow',
      component: () => import('../views/RoomType/RoomTypeShow.vue')
    },
    {
      path: '/roomTypeUpdate',
      name: 'roomTypeUpdate',
      component: () => import('../views/RoomType/RoomTypeUpdate.vue')
    },
    //房号
    {
      path: '/roomHaoAdd',
      name: 'roomHaoAdd',
      component: () => import('../views/RoomHao/RoomHaoAdd.vue')
    },
    {
      path: '/roomHaoShow',
      name: 'roomHaoShow',
      component: () => import('../views/RoomHao/RoomHaoShow.vue')
    },
  ]
})

export default router
